package com.echat.business.book.wrapper;

import com.echat.business.book.model.Discussion;

import java.util.Date;
import java.util.List;

/**
 * 书籍信息wrapper
 */
public class DiscussionWarpper {

    /**
     * 包装 Discussion
     *
     * @param discussions
     * @return
     */
    public List<Discussion> wrapper(List<Discussion> discussions) {
        for (Discussion disc :discussions ) {
            //时间格式化
            Date createTime = disc.getCreateTime();

        }
        return discussions;
    }
}
